// Filename: router.js
define([
  'jquery',
  'underscore',
  'backbone',
  'views/drive/view','models/drive',
], function($, _, Backbone,DriveView,Drive ){
  var AppRouter = Backbone.Router.extend({
    routes: {
      // Define some URL routes
      'archivos': 'showFiles',
      'users': 'showUsers',
      
      // Default
      '*actions': 'defaultAction'
    },
    showFiles: function(){       
      var driveView=new DriveView({el:$("#main_container"),drive:this.drive});
      driveView.render();
    },
      // As above, call render on our loaded module
      // 'views/users/list'
    showUsers: function(){
      userListView.render();
    },
    defaultAction: function(actions){      
    }
  });

  var initialize = function(){
    var app_router = new AppRouter;
    Backbone.history.start();
    this.drive=new Drive(defaultDrive);
  };
  return { 
    initialize: initialize
  };
});
